package components.listen
{
	import components.socket.ClientSocket;
	
	import flash.events.Event;
	import flash.utils.Dictionary;

	public class ListenController
	{
		private static var _dict:Dictionary = new Dictionary();
		
		private var _obj:Object;
		private var _border:Border;
		
		private var _socket:ClientSocket;
		
		public function ListenController( obj:Object )
		{
			_obj = obj;
			init();
		}
		
		private function init():void
		{
			_dict[this] = this;
			
			_border = new Border( _obj );
			
			_socket = new ClientSocket();
			_socket.addEventListener( Event.CLOSE, onSocketClose );
			_socket.connect( "127.0.0.1", 9527 );
		}
		
		private function onSocketClose( e:Event ):void
		{
			
		}
	}
}
















